package com.haima.sage.bigdata.api.service;

import com.haima.sage.bigdata.api.entity.ComputeTask;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Optional;

public interface ComputeTaskService {
    Optional<ComputeTask> findById(String id);

    void save(ComputeTask task);

    void updateBase(ComputeTask task);

    void updateData(ComputeTask task);

    void deleteById(String id);

    Page<ComputeTask> find(Pageable pageable);

}
